
#include <algorithm>

#include "application.h"
#include "chordnode.h"


void Application::addData( app_data_item_t data_item )
{
	TAppDataVector::iterator itr = 
		std::find( data_.begin(), data_.end(), data_item );
	if ( itr==data_.end() ){
		data_.push_back( data_item );
	}
}

void Application::removeData( app_data_item_t data_item )
{
	TAppDataVector::iterator itr = 
		std::find( data_.begin(), data_.end(), data_item );
	if ( itr!=data_.end() ){
		data_.erase(itr);
	}
}

